﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using ITM495.OOExamples.Core.Logger;

namespace ITM495.OOExamples.Core.Shapes
{
    public class Circle: Shape
    {
        public Circle(int x, int y, decimal radius):base(x, y)
        {
            Radius = radius;
        }

        public decimal Radius { get; set; }

        public override void Draw(ILogger logger)
        {
            logger.Log("Drawing Cirlce at {0}:{1}.", X, Y);
        }

        public override double Area()
        {
            return Math.PI*(Math.Pow((double)Radius, 2.0));
        }
    }
}
